<template>
	<view class="itemBox" :class="'bg_Color'+info.typeBgColor" @click="toPage(info)">
		<view class="imgInfo" >
			<image :src="info.img"></image>
			<view class="info">
				<view class="title">{{info.title}}</view>
				<view class="conter">{{info.address}}</view>
				<view class="time">{{info.time}}{{info.status}}</view>
			</view>
		</view>
		<!-- <view v-if="info.status" class="hand">
			<view :class="info.status=== '0'? 'zero':'one'">{{info.status=== '0'?'未处理':'已处理'}}</view>
			<view class="btn" @click="toPage(info)">{{info.status=== '0'?'立即处理':'查看详情'}}</view>
		</view> -->
	
	</view>
</template>

<script>
	export default {
		name:'name',
		props:{
			info:{
				type:Object,
				default(){
					return {
						
					}
				} 
			}
		},
		methods:{
			toPage(e){
				 this.$emit('toPage',e);
			}
		}
	}
</script>

<style scoped lang="scss">
	.itemBox{
		display: flex;
		height: 64px;
		justify-content: space-between;
		  
		    padding: 10px;
		    border-radius: 5px;
		   font-size: 12px;
		   font-family: Source Han Sans CN-Regular, Source Han Sans CN;
		   margin-bottom: 10px;
		   position: relative; 
		   &.bg_Color0::after{
			   content: "";
			   				opacity: 0.1;
			   				position: absolute;
			   				left: 0;
			   				top: 0;
			   				right: 0;
			   				bottom: 0;
			   				z-index: -1;
			    border-radius: 5px;
			    background: linear-gradient(90deg, #FF5B5B 0%, rgba(255,91,91,0) 100%);
				
		   }
		   &.bg_Color1::after{
			    border-radius: 5px;
			   content: "";
				opacity: 0.1;
				position: absolute;
				left: 0;
				top: 0;
				right: 0;
				bottom: 0;
				z-index: -1;

			   background: linear-gradient(90deg, #3FD098 0%, rgba(63,208,152,0.09) 100%);
			  
		   }
		   &.bg_Color2::after{
		   			    border-radius: 5px;
		   			   content: "";
		   				opacity: 0.1;
		   				position: absolute;
		   				left: 0;
		   				top: 0;
		   				right: 0;
		   				bottom: 0;
		   				z-index: -1;
		   			   background: linear-gradient(90deg, #0065D8 0%, rgba(36,138,255,0) 100%);
		   			  
		   }
		   &.bg_Color99::after{
		   			    border-radius: 5px;
		   			   content: "";
		   				opacity: 1;
		   				position: absolute;
		   				left: 0;
		   				top: 0;
		   				right: 0;
		   				bottom: 0;
		   				z-index: -1;
		   			   background: #fff;		  
		   }
		   
		   .hand{
			   display: flex;
			       flex-direction: column;
			       justify-content: space-around;
				   align-items: end;
				   .zero{
					   color: #FF5B5B;
					   margin-top: -10px;
					       text-align: end;
				   }
				   .one{
					   color: #3FD098;
					   margin-top: -10px;
				   }
				   .btn{
					   color: #0065D8;
					   border:1px solid #0065D8;
					   border-radius: 20px;
					   padding: 3px 11px;
					   font-size: 14px;
					    margin-bottom: -10px;
				   }
		   }
		.imgInfo{
			
			display: flex;
			.info{
				
				color: #666666;
				display: flex;
				    flex-direction: column;
				    justify-content: space-around;
				.title{
					color: #000;
					
				}
				
			}
			image{
				width: 64px;
				height: 64px;
				margin-right: 10px;
			}
		}
		
	}
</style>